package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.Area;
import com.fenxiangtech.mall.model.qc.AreaQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface AreaDAO{

    int insertArea(Area area);

    int updateArea(Area area);

    List<Area> listArea(AreaQC area);

    Long countArea(AreaQC area);

    int insertBatch(@Param("list") List<Area> areas);

    int deleteAreaById(Long id);

}